/*
package com.jzo2o.market.service;

import com.jzo2o.market.mapper.ActivityMapper;
import com.jzo2o.market.model.domain.Activity;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
//多线程任务类
class Task implements Runnable {
   private int num;
   @Resource
   private ActivityMapper activityMapper;

*/
/*    @Override
    public void run() {
        while (true) {
            num =  activityMapper.getCouponCount();
            System.out.println(Thread.currentThread().getName() + "任务执行完毕" + "剩余任务数：" + num);
        }
    }*//*

}
      */
